package ca.ericslandry.shared.event;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;

public class LogoutEvent extends GwtEvent<LogoutEvent.Handler> {
	public interface Handler extends EventHandler {
		public void onLogout(LogoutEvent event);
	}

	public static Type<LogoutEvent.Handler> TYPE = new Type<LogoutEvent.Handler>();

	public LogoutEvent() {
	}

	@Override
	protected void dispatch(LogoutEvent.Handler handler) {
		handler.onLogout(this);
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<LogoutEvent.Handler> getAssociatedType() {
		return TYPE;
	}
}
